package com.misty.factory_pattern.client1;

public class Test {
    public static void main(String[] args) {
        AbstractHumanFactory factory = new HumanFactory();
        Human blackMan = factory.createHuman(BlackMan.class);
        blackMan.getColor();
        blackMan.talker();
        Human whiteMan = factory.createHuman(WhiteMan.class);
        whiteMan.getColor();
        whiteMan.talker();
        Human yellowMan = factory.createHuman(YellowMan.class);
        yellowMan.getColor();
        yellowMan.talker();
    }
}
